<?php

$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'cssFile' => Yii::app()->baseUrl . Constant::CDETAILVIEW_CSS_URL,
    'attributes' => array(
        'productCategoryId',
        'name',
        'description',
        array(
            'name' => 'parentId',
            'value' => Helper::getProductCategoryNameById($model->parentId),
        ),
        'status',
        array(
            'type' => 'html',
            'name' => 'iconUrl',
            'value' => CHtml::image(Yii::app()->baseUrl . "/../uploads/productcategories/" . $model->iconUrl, "", array("width" => "200", "height" => "200")),
        ),
        'level',
        array(
            'name' => 'createdUserId',
            'value' => Helper::getUserNameById($model->createdUserId),
        ),
        'createdDate',
        array(
            'name' => 'updatedUserId',
            'value' => Helper::getUserNameById($model->updatedUserId),
        ),
        'updatedDate',
        array(
            'name' => 'isDeleted',
            'value' => Helper::getYesNoText($model->isDeleted),
        ),
    ),
));
echo Helper::renderCrudToolTrashIncludedNoAjax("productcategory", "productCategoryId", $model->productCategoryId, $model->isDeleted);
?>